#ifndef __STAGE1_SCENE_H__
#define __STAGE1_SCENE_H__

#include "cocos2d.h"

#include "Player.h"
#include "HpBar.h"
#include "FSM.h"
#include "VisibleRect.h"

USING_NS_CC;

class Stage1Scene : public Layer
{
public:
	static Scene* createScene();
	virtual bool init();
	CREATE_FUNC(Stage1Scene);
	bool onTouchBegan(Touch *touch, Event *event);
	void setPhysicsWorld(PhysicsWorld* world) { _world = world; }
	void onEnter();
	bool onContactBegin(const PhysicsContact& contact);
	void onContactSeperate(const PhysicsContact& contact);

private:
	EventListenerTouchOneByOne* _listener_touch;
	Player* _player;
	Player* _enemy;
	HpBar* _hpBar;
	PhysicsWorld* _world;
	EventListenerPhysicsContact* _listener_contact;
};

#endif